<%--
  Created by IntelliJ IDEA.
  User: lixin
  Date: 2022/12/28
  Time: 10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>loginInfo</title>
</head>
<body>

    <c:choose>
        <c:when test="${empty user}">
            <h1>${info}</h1>
        </c:when>
        <c:otherwise>
            <h1>欢迎${user.name}</h1>
            <form action="<%=request.getContextPath()%>/logoutLog" method="post">
                <input type="submit" value="退出登录">
            </form>
        </c:otherwise>
    </c:choose>


</body>
</html>
